import java.text.DecimalFormat;
import java.util.Scanner;

public class xiaoshudian {
    public static void main(String[] args) {
        Scanner in = new Scanner(System.in);
        DecimalFormat decimalFormat = new DecimalFormat("###################.###########");
        double[] a=new double[10];
        double b=0;
        double c;
        for (int i = 0; i <10 ; i++) {
            a[i]=in.nextDouble();
            b=b+a[i];
        }
        c=b/10;
        System.out.println(decimalFormat.format(b));
        System.out.println(decimalFormat.format(c));
    }
}
